package com.sunyur.tailor.channel.common.middle.base;

import lombok.Data;

import java.io.Serializable;

/**
 *
 * @Author xuhui
 * @Description 前置机获取头行数据的实体类
 **/
@Data
public class ChannelDataResult<H,I> implements Serializable {

    private String code;

    private String message;

    private H head;

    private I item;

    public void setSuccess(String code, String message, H head,I item){
        this.code = code;
        this.message = message;
        this.head = head;
        this.item = item;
    }

    public void setError(String code, String message){
        this.code = code;
        this.message = message;
    }
}

